using System;

namespace StudentDemo
{
    public class Student
    {
        public string Name { get; set; }
        public int Age { get; set; }
        public double Score { get; set; }

        public Student(string name, int age, double score)
        {
            Name = name;
            Age = age;
            Score = score;
        }

        public override string ToString()
        {
            return $"姓名：{Name}，年龄：{Age}，成绩：{Score}";
        }

        public static void Main()
        {
            Student[] students = new Student[]
            {
                new Student("张三", 18, 92.5),
                new Student("李四", 17, 88.0),
                new Student("王五", 19, 95.0)
            };

            Console.WriteLine("学生信息：");
            foreach (var student in students)
            {
                Console.WriteLine(student);
            }
        }
    }
}
